package com.mjk.common.web.getway.restful.prototal.http;

import com.mjk.common.web.getway.conf.GetWayConf;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@ConditionalOnBean(value= GetWayConf.class)
public class GetWayController {	

	/**
	 * 请求公共接口 
	 * @protocal 请求对应的后台协议（dubbo,http,ws,import,export等）
	 * @work     对应后台的那个类(spring初始化出来的bean名称,最好和类名称对应转小写)
	 * @return   接口返回的结果
	 */
	@RequestMapping(value="/ld/{protocal}/{version}/{work}")
	public ModelAndView getWayContoller(String dto, @PathVariable String protocal, @PathVariable String version, @PathVariable String work){
        return new ModelAndView();
	}
	
	
}
